﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Albatross.WPF.Common.Views {
	public class CommandParameter : DependencyObject {
		public const string ValuePropertyName = "Value";
		public static readonly DependencyProperty ValueProperty = DependencyProperty.Register(ValuePropertyName, typeof(object), typeof(CommandParameter), new PropertyMetadata());
		public object Value {
			get { return (object)GetValue(ValueProperty); }
			set { SetValue(ValueProperty, value); }
		}


		
		public const string ViewServicePropertyName = "ViewService";
		public static readonly DependencyProperty ViewServiceProperty = DependencyProperty.Register(ViewServicePropertyName, typeof(IViewService), typeof(CommandParameter), new PropertyMetadata());
		public IViewService ViewService {
			get { return (IViewService)GetValue(ViewServiceProperty); }
			set { SetValue(ViewServiceProperty, value); }
		}
	}
}
